/**
 * Application.java
 */
package com.nb.appstarter;

import org.apache.log4j.BasicConfigurator;
import org.nbempire.java.boc6.console.ConsoleUtil;
import org.nbempire.java.bocui.commandline.CommandLineKeys;


/**
 * @author Nahuel Barrios.
 * @since 23/08/2011.
 * 
 */
public class Application {

    /**
     * Método principal que debe ser ejecutado para iniciar la aplicación.
     * 
     * @param args
     */
    public static void main(String[] args) {
        BasicConfigurator.configure();// Configuro Log4j.

        ConsoleUtil.startApplication();

        if (!ConsoleUtil.validateProgramArguments(args, CommandLineKeys.JAVA_JAR_PREFFIX + "C:\\anExecutable.exe")) {
            ConsoleUtil.exitApplication();
        }

        new AppStarter(args[0]).doMagic();

        ConsoleUtil.exitApplication();
    }

}
